package com.ruoyi.common.core.domain.order.vo;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单评价对象 order_review
 *
 * @author ruoyi
 * @date 2025-06-16
 */
public class OrderReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private String orderId;

    /** 评价用户ID */
    @Excel(name = "评价用户ID")
    private String userId;

    /** 被评价员工ID */
    @Excel(name = "被评价员工ID")
    private String employeeId;

    /** 服务项目ID */
    @Excel(name = "服务项目ID")
    private String serviceId;

    /** 评分(1-5分) */
    @Excel(name = "评分(1-5分)")
    private BigDecimal rating;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 评价图片(多图用逗号分隔) */
    @Excel(name = "评价图片(多图用逗号分隔)")
    private String pictures;

    /** 是否匿名(0:不匿名 1:匿名) */
    @Excel(name = "是否匿名(0:不匿名 1:匿名)")
    private Integer isAnonymous;

    /** 商家回复内容 */
    @Excel(name = "商家回复内容")
    private String replyContent;

    /** 商家回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商家回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setEmployeeId(String employeeId)
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId()
    {
        return employeeId;
    }

    public void setServiceId(String serviceId)
    {
        this.serviceId = serviceId;
    }

    public String getServiceId()
    {
        return serviceId;
    }

    public void setRating(BigDecimal rating)
    {
        this.rating = rating;
    }

    public BigDecimal getRating()
    {
        return rating;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setPictures(String pictures)
    {
        this.pictures = pictures;
    }

    public String getPictures()
    {
        return pictures;
    }

    public void setIsAnonymous(Integer isAnonymous)
    {
        this.isAnonymous = isAnonymous;
    }

    public Integer getIsAnonymous()
    {
        return isAnonymous;
    }

    public void setReplyContent(String replyContent)
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent()
    {
        return replyContent;
    }

    public void setReplyTime(Date replyTime)
    {
        this.replyTime = replyTime;
    }

    public Date getReplyTime()
    {
        return replyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("employeeId", getEmployeeId())
                .append("serviceId", getServiceId())
                .append("rating", getRating())
                .append("content", getContent())
                .append("pictures", getPictures())
                .append("isAnonymous", getIsAnonymous())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("replyContent", getReplyContent())
                .append("replyTime", getReplyTime())
                .toString();
    }
}


